import {request} from "@/network/request-config";
import axios from "axios";

export function uploadFileAPI(data,type){
    return request({
        url:"/hems/upload/file?path="+type,
        method:"post",
        data
    }).then(res=>{
        return res
    })
}

// export function fetchExistingFiles(fileUrl) {
//     let offerUrl = process.env.VUE_APP_BASE_FILE_URL + fileUrl
//     return request({
//         url: offerUrl,
//         method:"get"
//     }).then(res=>{
//         return res
//     })
// }

